import { Text, View } from '@tarojs/components'
import dayjs from 'dayjs'

export default function Header() {
  const time = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
  const code = 'abc1111'
  return (
    <View className='index'>
      <View style={{ background: "pink", padding: '20px 5px 5px 5px' }}>
        <View style={{ display: 'flex' }}>
          <View style={{ width: "30%" }}>
          </View>
          <View>
            <Text>最新考勤记录:</Text>
            <Text>您已于{time}上班考勤,考勤编码</Text>
            <Text>{code}</Text>
          </View>
        </View>
      </View>
    </View>
  )
}
